﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/RedesignedMaster.Master" Inherits="System.Web.Mvc.ViewPage<final_darskade.Models.user>" %>

<asp:Content ID = "titleContent" ContentPlaceHolderID = "TitleContent" runat = "server">
    ویرایش اطلاعات کاربر
</asp:Content>

<asp:Content ID = "breadcrumbs" ContentPlaceHolderID = "Breadcrumbs" runat = "server">
    <a href = "/">صفحه اصلی</a> > <a href = "/contactManagement/">مدیریت کاربران</a> > <a href = "/contactManagement/Create">ویرایش اطلاعات کاربر</a>
</asp:Content>

<asp:Content ID="mainContent" ContentPlaceHolderID = "MainContent" runat="server">

    <div>
    <form id = "editform" method = "post" class = "validateform">
        <fieldset>
            <legend>مشخصات کاربر</legend>
            
            <div class="editor-label">شماره کاربری</div>
            <div class="editor-field">
                <input id = "disabled_user_id" name = "user_id" value = "<%=Model.user_id%>" disabled = "disabled" />
                <input id = "user_id" name = "user_id" value = "<%=Model.user_id%>" type = "hidden"/>
            </div>
            
            <div class="editor-label">نام کاربری</div>
            <div class="editor-field">
                <input class = "validate[required]" id = "username" name = "username" value = "<%=Model.username%>"/>
            </div>
            
            <div class="editor-label">رمز عبور</div>
            <div class="editor-field">
                <input id = "pass" name = "pass" type = "password"/>
            </div>
            
            <div class="editor-label">شماره نقش</div>
            <div class="editor-field">
                <input class = "validate[required]" id = "role_id" name = "role_id" value = "<%=Model.role_id%>"/>
            </div>
            
            <div class="editor-label">پست الکترونیکی</div>
            <div class="editor-field">
                <input class = "validate[required,custom[email]]" id = "email" name = "email" value = "<%=Model.email%>"/>
            </div>
                        
            <div class="editor-label">نام</div>
            <div class="editor-field">
                <input class = "validate[required]" id = "first_name" name = "first_name" value = "<%=Model.first_name%>"/>
            </div>
            
            <div class="editor-label">نام خانوادگی</div>
            <div class="editor-field">
                <input class = "validate[required]" id = "last_name" name = "last_name" value = "<%=Model.last_name%>"/>
            </div>
            
            <div class="editor-label">سال ورود</div>
            <div class="editor-field">
                <input class = "validate[required]" id = "entrance_year" name = "entrance_year" value = "<%=Model.entrance_year.Value%>" />
            </div>
            
            <p>
                <input type="submit" value="ثبت تغییرات" />
            </p>
        </fieldset>
    </form>
    </div>

</asp:Content>

